Repository navigation
PENDING: phy: qcom: Fix PCIe PHY regulator voting causing suspend/resume crash - #1563
Open
Hariharan Sreedhar (hariharan-sree) wants to merge 3 commits into
Conversation
…es for all lane configs The regulator lists for port B, C, D, CD and BCD only contained the per-lane vdda-phy-x/vdda-pll-x supplies and never included the shared vdda-phy-a/vdda-pll-a rails that back the common PCS/common block. When a board enables only ports B, C or D (or a combination that does not include port A), the shared vdda-phy-a/vdda-pll-a regulators are never voted. The PHY common block, which backs the DBI register space, is therefore left improperly powered. Accessing the DBI registers from that under-voted rail during suspend/resume crashes. Add vdda-phy-a and vdda-pll-a to the port B/C/D/CD/BCD regulator lists so the shared supply is always voted whenever any of these ports is active. Signed-off-by: Hariharan Sreedhar <hariharan.sreedhar@oss.qualcomm.com>
…ply regulator mapping vdda-pll-b-supply, vdda-pll-c-supply and vdda-pll-d-supply were incorrectly mapped to vreg_l1e_0p9, the same rail already used by vdda-pll-a-supply. With all four PLL rails tied to a single regulator, the PHY's PLL supplies for lanes B/C/D are not voted on their actual hardware regulator, leaving the PCIe PHY improperly powered. This causes crashes when the DBI register space is accessed during suspend/resume. Point vdda-pll-b/c/d-supply at vreg_l2e_0p9, matching the board's actual regulator assignment. Signed-off-by: Hariharan Sreedhar <hariharan.sreedhar@oss.qualcomm.com>
…nd drop duplicate override vdda-pll-b-supply, vdda-pll-c-supply and vdda-pll-d-supply were incorrectly mapped to vreg_l1e_0p9, the same rail already used by vdda-pll-a-supply, leaving the PCIe PHY's PLL supplies improperly voted. Point them at vreg_l2e_0p9, matching the board's actual regulator assignment. The file also carried a second, duplicate &pcie_phy / &pcie0.. &pcie3 and &pcie0_port0.. &pcie3_port0 override block further down with the same stale vdda-pll-b/c/d-supply = vreg_l1e_0p9 mapping. Since devicetree merges same-labeled fragments in file order, this later block silently re-applied the wrong mapping on top of the fix, leaving the PHY under-voted and causing crashes when the DBI register space is accessed during suspend/resume. Drop the duplicate override block so the corrected mapping sticks. Signed-off-by: Hariharan Sreedhar <hariharan.sreedhar@oss.qualcomm.com>
Test resultsWorkflow run: 45828587002 attempt 1 Known failures configured: 0
Test Matrix
Failure summaryUnexpected failures
Result: blocked because unexpected failures were found. |
LAVA Failed Case Triage SummaryPR: #1563 Job 295040 | SoC iq10-nordLAVA job: https://lava-oss.qualcomm.com/scheduler/job/295040 Failed test cases in LAVA job 295040 (SoC: iq10-nord).
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The Nord PCIe PHY common block (vdda-phy-a/vdda-pll-a) was not being
voted when only a subset of ports (B/C/D) were enabled, and two Nord
boards had the vdda-pll-b/c/d-supply regulators mis-mapped onto the
same rail as vdda-pll-a. With the PHY's common/PLL supplies left
improperly voted, accessing the DBI register space during
suspend/resume causes a crash.
phy-qcom-qmp-pcie-multiphy.c: addvdda-phy-a/vdda-pll-ato theport B/C/D/CD/BCD regulator lists so the shared common-block supply
is always voted regardless of which ports are active.
nord-ride-embedded.dts: fixvdda-pll-b/c/d-supplyto point atvreg_l2e_0p9instead of being aliased tovreg_l1e_0p9(vdda-pll-a's rail).
nord-rrd.dts: same regulator fix, plus removal of a duplicate&pcie_phy/&pcie0..3override block further down in the filethat re-applied the stale
vreg_l1e_0p9mapping via devicetreenode merging, silently undoing the fix.